{% extends "sil29VitrineBundle:Commande:commandeTemplate.html.twig" %} {% block mesCommandes %}


	<h5>Historique de vos dernières commandes : </h5><br/>

	<table class="table table-bordered records_list">
        <thead>
            <tr>
                <th>N° Commande</th>
                <th>Statut</th>
                <th>Date de commande</th>
                <th>Informations complémentaires</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('commande_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                <td><span class="label {{ entity.statutPastilla }}" >{{ entity.statutLabel }}</span></td>
                <td>{% if entity.dateCommande %}{{ entity.dateCommande|date('Y-m-d H:i:s') }}{% endif %}</td>
                <td>{{ entity.infoSupp }}</td>
                <td>
                <ul>
                    <li>
                        <a href="{{ path('commande_show', { 'id': entity.id }) }}">Voir</a>
                    </li>
                    <li>
                        <a href="{{ path('commande_edit', { 'id': entity.id }) }}">edit</a>
                    </li>
                </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}
	